<!DOCTYPE html>
<!-- 页面语言 -->
<html lang="{{ $.Site.LanguageCode }}">

<head>
    <!-- 引入网页头部 -->
    {{- partial "head.html" . -}}
    <!-- 网页标题 -->
    <title>{{block "title" .}}{{ .Title }}{{end}} | {{.Site.Title}}</title>
</head>

<body>
    {{- partial "header.html" . -}}
    {{ if .Draft }}
    <!-- 草稿的正文样式 -->
    <main class="container">
        {{ block "main" . }}{{ end }}
        {{/* {{ block "toc" }}{{ end }} */}}
    </main>
    {{ else }}
    <!-- 发行的正文样式 -->
    <main id="container">
        {{ block "main" . }}{{ end }}
        {{/* {{ block "toc" }}{{ end }} */}}
    </main>
    {{ end }}
    {{- partial "footer.html" . -}}
    {{- partial "script.html" . -}}
</body>

</html>
